<?php

use yii\helpers\Url;

?>
<script>
    // var response = "<//?= $response['data'] ?>";
    $(document).ready(function() {
        $.ajax({
            type: 'POST',
            url: "<?= Url::to('@web/document/recharge') ?>",
            data: {},
            dataType: 'json',
            async: false,
            success: function(params) {
                alert(params.data);
                var _form = $(params.data).wrap('div');
                $(_form).find('form').attr('target', '_blank');
                $('body').append(_form);
            }
        });
    });
</script>